package po;

/**
 * @Description: TODO
 * @Author: ZYX
 * @Date: 2022/2/8 14:58
 * @Version: 1.0
 */
public class WordWithCount {

    /**
     * pojo类
     * 1.必须是公有类
     * 2.所有字段必须是public
     * 3.必须是空构造器
     * 模拟case class
     */
    public String word;

    public Long count;

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public WordWithCount() {
    }

    public WordWithCount(String word, Long count) {
        this.word = word;
        this.count = count;
    }

    @Override
    public String toString() {
        return "WordWithCount{" +
                "word='" + word + '\'' +
                ", count=" + count +
                '}';
    }

}
